//
//  UILabel+Extension.m
//  WHYWeibo-OC
//
//  Created by 王洪运 on 15/11/24.
//  Copyright © 2015年 王洪运. All rights reserved.
//

#import "UILabel+WHYExtension.h"

@implementation UILabel (WHYExtension)

+(instancetype)labelWithTitle:(NSString *)title titleColor:(UIColor *)titleColor fontSize:(CGFloat)fontSize {
    UILabel *label = [self new];
    
    label.text = title;
    label.textColor = titleColor;
    label.font = [UIFont systemFontOfSize:fontSize];
    label.textAlignment = NSTextAlignmentCenter;
    label.numberOfLines = 0;
    [label sizeToFit];
    
    return label;
}

@end
